<?php namespace Controller;

    class privateController {
        public function __construct() {

        }

        public function checkAdmin() {
            session_start();
            if (!isset($_SESSION["admin"])){
                header("Location: /admin/login");
                die();
            }
        }

        public function checkUser() {
            if (!isset($_SESSION["user"])){
                header("Location: /");
                die();
            }
        }
    }